<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><?php echo $title;?></title>

<link href="<?php echo base_url();?>css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery.blockUI.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/script.js"></script>
<script type="text/javascript"> 
 
    // unblock when ajax activity stops 
    $(document).ajaxStop($.unblockUI); 
 
    function test() { 
        $.ajax({ url: 'wait.php', cache: false }); 
    } 
 
    $(document).ready(function() { 
        $('#ddddd').click(function() { 
            $.blockUI(); 
            test(); 
        }); 
        $('#pageDemo2').click(function() { 
            $.blockUI({ message: '<h1><img src="busy.gif" /> Just a moment...</h1>' }); 
            test(); 
        }); 
        $('#dddddd').click(function() { 
            $.blockUI({ css: { backgroundColor: '#f00', color: '#fff' } }); 
            test(); 
        }); 
 
        /*$('.ahome, .ashoping,.acamtravel').click(function() { 
            $.blockUI({ message: $('#domMessage') }); 
            test(); 
        });*/  
    }); 
   
</script>  
</head>
<body>
   <div id="wrapper">
   <span id="domMessage" style="display:none;background:none!important;">loading...</span> 
    <div id="top">
    	<div class="account">
    		<?php 
    		if (isset($_SESSION['uid']) && $_SESSION['uid'] > 0) {
    			echo '<img class="setting" src="'.base_url().'css/images/setting.png" />';
    			echo '<p>Welcome, '.$_SESSION['username'].'</p>';
    			$this->load->view('site/setting');
    			/*echo anchor("cmemberlogin/logout","Logout");*/
    		} else {?>
    			<a class="lable-login" href="#">Member Login</a>
    			<?php $this->load->view('site/login');?>
    		<?php } ?>
    	</div>
    </div>
	<div id="header">
		<div class="building">
			
		</div>
		<img src="<?php echo base_url();?>css/images/logo2.png" alt="logo" />
	</div>
	<div id="menu-nav">
		<div id="nav">
			<ul>
				<li><a href="#">Home</a></li>
				<li><a href="#">About College</a></li>
				<li><a href="#">Resources</a></li>
				<li><a href="#">Lecturers</a></li>
				<li><a href="#">Messages</a></li>
				<li><a href="#">Thesis</a></li>
				<li><a href="#">Student Result</a></li>
			</ul>
		</div>
	</div>
	<div id="content-container">
		<div id="content-left">
			<?php 
				$margin_left = "";
				if (isset($left)) {
					$margin_left = "content-margin-left";
					$this->load->view($left);	
				}
			?>
		</div>
		 <div id="content-right">
        	<?php 
        		$margin_right = "";
				if (isset($right)) {
					$margin_right = "content-margin-right";
					$this->load->view($right);	
				}
			?>
        </div>
		<div id="content-main" class="<?php echo $margin_left.'  '.$margin_right;?>">
            <?php $this->load->view($main);?>
        </div>
		<div style="clear:both;"></div>
	</div>
	<div id="footer">
		<!-- <div class="copy">
			<ul>
				<li><?php //echo anchor("welcome/page","Contact Us"); ?>&nbsp;|&nbsp;</li>
				<li><?php //echo anchor("welcome/page","Privacy Policy"); ?></li>
			</ul>
			<p>&copy;2012, All Rights Reserved by Norton university - deparment: computer study.</p>
		</div>
		 -->
		 <p>
		 	NORTON UNIVERSITY<BR/>
		 	College of Science, Department of Computer Studies.
		 </p>
	</div>
</div>
</body>
</html>
